﻿
using PublicClass;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace S.Services.SheepMale.Domain.PurchaseSales
{
    /// <summary>
    /// 期初表
    /// </summary>
    [Table("SheepMaleInfo")]
    public class SheepMaleInfo: AuditFields
    {
        /// <summary>
        /// 期初编号
        /// </summary>
        [Key]
        public int MaleId { get; set; }
        /// <summary>
        /// 耳号
        /// </summary>
        [StringLength(50)]
        public string ?Earbugles { get; set; }
        /// <summary>
        /// 栋舍
        /// </summary>
        [StringLength(50)]
        public string? CottageName {  get; set; }
        /// <summary>
        /// 转入栏位
        /// </summary>
        [StringLength(50)]
        public string? FieldName {  get; set; }
        /// <summary>
        /// 只数
        /// </summary>
        public int NumberMale {  get; set; }
        /// <summary>
        /// 公斤
        /// </summary>
        public int WeighMale {  get; set; }
        /// <summary>
        /// 羊只类型
        /// </summary>
        public SheepType SheepType {  get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        [StringLength(50)]
        public string? DocumentNumber {  get; set; }
        /// <summary>
        /// 期初日期
        /// </summary>
        public DateTime? MaleDate { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        [StringLength(50)]
        public string? ExamineBy { get; set; }
        /// <summary>
        /// 审合时间
        /// </summary>
        public DateTime? ExamineDate { get; set; }
        /// <summary>
        /// 转种日期
        /// </summary>
        public DateTime ? ConvertDate {  get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public bool ExamineType { get; set; }
    }
}
